<?php 
require_once ('../../BddManager.php');
require_once ('../../PrintHelper.php');
require_once ('../../Cookbook.php');
require_once ('../../Comment.php');

use PrintHelper;
use BddManager;
use Cookbook;
use Comment;

header("Content-type: text/javascript");

$bddManager= BddManager::getInstance();
$bddManager->makeConnection();
?>



angular.module('starter.controllers', [])
.controller('AppCtrl', function($scope) {
})
.controller('PlaylistsCtrl', function($scope,filterFilter) {
 

 $scope.cookbooks4A = <?php 
//Retourne la liste des titres des cookbooks
$array = PrintHelper::getAllCookbookParam("4A");
//affiche les cookbooks
PrintHelper::formatListCookBook($array);
?>

$scope.cookbooks5A = <?php 
//Retourne la liste des titres des cookbooks
$array = PrintHelper::getAllCookbookParam("5A");
//affiche les cookbooks
PrintHelper::formatListCookBook($array);
?>



})
.controller('PlaylistCtrl', function($scope, $stateParams) {
$scope.id = $stateParams.playlistId;


}) 
